package com.rui.service;

import com.rui.domain.Permission;
import com.rui.domain.User;

import java.util.List;

public interface UserService {

    //根据用户名查找用户
    User findUserByUsername(String username);

    //根据roleId查询权限
    List<Permission> findPermissionByRoleId(int roleId);

    boolean updatePassword(User user);
}
